import { request } from '@/utils/request'

enum API {
  COUPON_HISTORY_LIST_URL = '/api/coupon/couponhistory/list',
  COUPON_HISTORY_DELETE_URL = '/api/coupon/couponhistory/delete',
}

export const reqCouponHistoryList = (
  page: number,
  limit: number,
  key: string,
) =>
  request.get<any, any>(
    API.COUPON_HISTORY_LIST_URL + `?page=${page}&limit=${limit}&key=${key}`,
  )

export const reqCouponHistoryDelete = (id: any) =>
  request.get<any, any>(API.COUPON_HISTORY_DELETE_URL + `/${id}`)
